package etcd

import (
	"fmt"
	"time"
)

const (
	// Delimiter is a separator that separates the etcd path.
	Delimiter = '/'

	autoSyncInterval   = time.Minute
	coolDownInterval   = time.Second
	dialTimeout        = 5 * time.Second
	dialKeepAliveTime  = 5 * time.Second
	requestTimeout     = 3 * time.Second
	endpointsSeparator = ","

	// DiscovScheme stands for discov scheme.
	DiscovScheme = "etcd"
	// EndpointSepChar is the separator cha in endpoints.
	EndpointSepChar = ','
)

var (
	// DialTimeout is the dial timeout.
	DialTimeout = dialTimeout
	// RequestTimeout is the request timeout.
	RequestTimeout = requestTimeout

	// EndpointSep is the separator string in endpoints.
	EndpointSep = fmt.Sprintf("%c", EndpointSepChar)
)
